package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
//配置xml
@Configuration
//扫描
@ComponentScan("com.itheima")
//读取文件
@PropertySource("classpath:jdbc.properties")
//导入其他class文件
@Import({JdbcConfig.class,MybatisConfig.class})
//用于事务的提交与回滚,指引有需要回滚之类的接口(一般写在接口)
@EnableTransactionManagement
public class SpringConfig {
}
